<%-- 所有页面的公用头部  标签库--%>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%--<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>--%>
<%--<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>--%>
<%--<%@ taglib prefix="sjt" uri="/struts-jquery-tree-tags"%>--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<!-- 自定义标签库 -->
<%@ taglib uri="/WEB-INF/tld/sd-frame.tld" prefix="sdframe" %>
<%@ taglib uri="/WEB-INF/tld/sd-ligerui-page.tld" prefix="sdpage" %>
<%@ taglib uri="/WEB-INF/tld/bd.tld" prefix="bd" %>
<%@ page isELIgnored="false"%>
<%  
  response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
  response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
  response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
  response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
  String baseURL = request.getContextPath();
%>
<%-- 全路径--%>
<c:set var="baseURL" value="${pageContext.request.scheme}://${header.host}${pageContext.request.contextPath}" scope="request" /> 
 <script type="text/javascript">
 	var baseURL = "${baseURL}";
 </script>
<%@ page contentType="text/html; charset=UTF-8" language="java" import="com.badou.brms.cfg.syscache.SystemSetting"%>
<%@ page import="java.util.Optional" %>
<%
		request.setAttribute("successIcon", SystemSetting.getLocalBaseDefine().getSuccessIcon());
		request.setAttribute("warningIcon", SystemSetting.getLocalBaseDefine().getWarningIcon());
		request.setAttribute("errorIcon", SystemSetting.getLocalBaseDefine().getErrorIcon());
        Optional<String> systemVersion = Optional.ofNullable(SystemSetting.getLocalBaseDefine().getSystemVersion());
        String sv = systemVersion.orElse("").trim();
		request.setAttribute("systemVersion", sv);
		if (!"".equals(sv)) {
		    request.setAttribute("sv", "?sv=" + sv);
        }
%>
<script type="text/javascript">
 	var successIcon = 'fa fa-check-circle text-blue';
    var warningIcon = 'fa fa-info-circle text-orange';
    var errorIcon = 'fa fa-close text-red';
    if('${successIcon}'!=''){
    	successIcon = '${successIcon}';
    }
    if('${warningIcon}'!=''){
    	warningIcon = '${warningIcon}';
    }
    if('${errorIcon}'!=''){
    	errorIcon = '${errorIcon}';
    }
</script>